<template>
  <div class="box">
    <div v-for="item in recommend" class="recommends-item">
      <a :href="item.link">
        <img :src="item.image">
        <span>{{item.title}}</span>
      </a>
    </div>
  </div>
</template>

<script>
  export default {
    name: "RecommendView",
    props:{
      recommend:{type:Array,default:[]}
    }
  }
</script>

<style scoped>
  .box{
    width: 100%;
    display: flex;
    align-content: center;
    margin-top: 10px;
    font-size: 14px;
    padding-bottom: 30px;
    border-bottom: 10px solid #eee;
  }
  .recommends-item{
    flex:1;
    text-align: center;
  }
  .recommends-item img{
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
  }
</style>